package com.easy.dev.controller;

import com.easy.dev.service.impl.BaseServiceImpl;
import com.easy.dev.service.impl.TableServiceImpl;
import com.easy.dev.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/table")
public class TableController extends BaseController<Object>{

    @Autowired
    private TableServiceImpl tableService;

    @GetMapping("/{tableName}")
    public Result testSelect(@PathVariable("tableName") String tableName) {
        tableService.createAutoFile(tableName);
        return getResult();
    }

    @Override
    BaseServiceImpl getService() {
        return null;
    }
}
